@setlocal
@echo off
REM ==========================================================
REM Cleanup scripts to delete all test certificate created
REM for this sample and also to delete the SSL configuration.
REM ==========================================================

REM ----------------------------------------------------------
REM Delete the Serivce STS certificate.
REM ----------------------------------------------------------
certmgr.exe -del -c -n ServiceSTS -s -r localMachine My > nul
certmgr.exe -del -c -n ServiceSTS -s My > nul

REM -----------------------------------------------------------
REM Delete the Service Certificate.
REM -----------------------------------------------------------
certmgr.exe -del -c -n WCFService -s -r localMachine My > nul
certmgr.exe -del -c -n WCFService -s My > nul

REM ------------------------------------------------------------
REM Delete the Client STS certificate.
REM ------------------------------------------------------------
certmgr.exe -del -c -n WCFClient -s My > nul

echo All test certificates created were removed.

@endlocal
